import Taro, { Component, request, showLoading, redirectTo } from '@tarojs/taro'
import { View, Button, Text, Image,ScrollView,Swiper, SwiperItem,  } from '@tarojs/components'
import { connect } from '@tarojs/redux'
import { add, minus, asyncAdd, ooo,re} from '../../actions/counter'
import { imgUrl } from '../../config'

import './glQz.scss'

@connect(({ counter }) => ({
  counter
}), (dispatch) => ({
  add () {
    dispatch(add())
  },
  dec () {
    dispatch(minus())
  },
  asyncAdd () {
    dispatch(asyncAdd())
  },
  haha () {
    dispatch(ooo(0))
  },
  // re(){
  //   dispatch(re())
  // }
}))


class GlQz extends Component {

  // config = {
  //   navigationBarTitleText: '首页'
  // }
  constructor (props) {
    super(props)
    this.state = { 
        value:"<"
     }
  }

  componentWillMount(){
  }
  componentDidMount(){

  }
  back(){
    redirectTo({
      url: '/pages/qzZl/qzZl'
    })
  }
  glCy(){
    redirectTo({
      url:'/pages/glCy/glCy'
    })
  }
  jyCy(){
    redirectTo({
      url:'/pages/jyCy/jyCy'
    })
  }

  render () {
    return (
            <View className='index'>
              <View className='head'>
                <Text className='close' onClick={this.back}>{this.state.value}</Text>
                <Text className='name'>管理圈子</Text>
              </View> 
         
              <View className='msg'>
                <View className='cont'>
                    <View className='left'>管理成员</View>
                    <View className='right' onClick={this.glCy}>></View>
                </View>
                <View className='cont'>
                    <View className='left'>禁言成员</View>
                    <View className='right' onClick={this.jyCy}>></View>
                </View>
              </View>
            </View>
    )
  }
}

